﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Info
    {
        //定义一个员工类，存放用户的工号、姓名和部门信息；
        //定义两个构造函数，一个是无参；
        //一个有参构造函数，对类的属性进行初始化。
        public int number { get; set; }
        public string name { get; set; }
        public string department { get; set; }

        public void StaffMsg()
        {
            Console.WriteLine("工号{0},姓名{1},部门信息{2}",this.number,this.name,this.department);
        }
        public Info(int number,string name,string department)
        {
            this.number = number;
            this.name = name;
            this.department = department;
            Console.WriteLine("工号{0},姓名{1},部门信息{2}", this.number, this.name, this.department);
        }
        public Info()
        {

        }

             
}
    }

